package entity

import ()

type Region struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	Code string `gorm:"column:code;type:VARCHAR(255)" json:"code"`

	CountryCode string `gorm:"column:country_code;type:VARCHAR(255)" json:"country_code"`

	RegionNameE string `gorm:"column:region_name_e;type:VARCHAR(255)" json:"region_name_e"`

	RegionNameC string `gorm:"column:region_name_c;type:VARCHAR(255)" json:"region_name_c"`

	Level int `gorm:"column:level;type:TINYINT" json:"level"`

	UpperRegion string `gorm:"column:upper_region;type:VARCHAR(255)" json:"upper_region"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Region) TableName() string {
	return "regions"
}
